home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / lem2demo.zip / INSTALL.BAT next >
DOS Batch File  |  1992-11-04  |  2KB  |  76 lines

  1. echo off
  2. REM Disk install
  3. cls
  4.  
  5. REM 
  6. REM install drive:
  7. REM
  8. if %0==a:install goto adrive
  9. if %0==A:install goto adrive
  10. if %0==A:INSTALL goto adrive
  11. if %0==b:install goto bdrive
  12. if %0==B:install goto bdrive
  13. if %0==B:INSTALL goto bdrive
  14. if %0==install goto doinstall
  15. if %0==INSTALL goto doinstall
  16.  
  17. echo Please change to the drive you wish to install from before
  18. echo starting installation. 
  19. goto End
  20.  
  21. :adrive
  22. a:
  23. goto doinstall
  24.  
  25. :bdrive
  26. b:
  27. goto doinstall
  28.  
  29. :doinstall
  30. if "%1"=="" goto DriveNeeded
  31. goto StartInstallation
  32.  
  33. :DriveNeeded
  34. echo Please specify which drive to install on.
  35. goto End
  36.  
  37. :StartInstallation
  38. echo ╔═══════════════════════════════════════════════════════════════╗
  39. echo ║                                                               ║
  40. echo ║                                                               ║
  41. echo ║ Installation of Lemmings2 into directory: %1\L2               ║
  42. echo ║                                                               ║
  43. echo ║                                                               ║
  44. echo ╚═══════════════════════════════════════════════════════════════╝
  45. echo 
  46.  
  47. if not exist %1\L2\*.* goto CopyFiles
  48.  
  49. :DirectoryExists
  50. echo WARNING:  The directory %1\L2 already exists.
  51. echo Press Ctrl-C now to abort installation.
  52. echo 
  53. pause
  54. echo 
  55.  
  56. REM
  57. REM do the self extraction
  58. REM
  59. :CopyFiles
  60. echo Copying Files....
  61. md %1\l2
  62. l2demo %1\l2
  63. if errorlevel == 0 goto ok
  64.  
  65. :InstallError
  66. echo Installation of "Lemmings2" into %1\L2 was unsuccessful.
  67. goto end
  68.  
  69. :ok
  70. echo Installation successful, Change the current directory to %1\l2
  71. echo and type 'l2' to play
  72. :End
  73. echo 
  74.  
  75.  
  76.